<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="./d3.v5.min.js"></script>
</head>

<body>

  <div id="app">

    <!-- <h1></h1> -->

  </div>


  <script>

    d3.csv('./data.csv').then((result) => {
      console.log(result);
      var container = d3.select("#app");
      container.selectAll('h1')
        .data(result.columns)
        .enter()
        .append('h1')
        .text(function (d) {
          return d;
        })


    })

  </script>


</body>

</html>